package com.qf.dao;

import com.qf.entity.DTO.MeetingDTO;
import com.qf.entity.po.MeetingPub;
import com.qf.entity.po.MeetingPubExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

public interface MeetingPubMapper {
    int countByExample(MeetingPubExample example);

    int deleteByExample(MeetingPubExample example);

    int deleteByPrimaryKey(String id);

    int insert(MeetingPub record);

    int insertSelective(MeetingPub record);

    List<MeetingPub> selectByExample(MeetingPubExample example);

    MeetingPub selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") MeetingPub record, @Param("example") MeetingPubExample example);

    int updateByExample(@Param("record") MeetingPub record, @Param("example") MeetingPubExample example);

    int updateByPrimaryKeySelective(MeetingPub record);

    int updateByPrimaryKey(MeetingPub record);
    @Select("select p.id,pcode,ptime,t.tname,ptitle,remark,p.createdate,p.status from meetingpub p LEFT JOIN meetingtype t on p.tid=t.id;")
    List<MeetingPub> getMeetingList();

    void updateStatusDown(String id);

    void updateStatusUp(String id);

    //列表查询
    List<MeetingPub> listCondition(MeetingDTO meetingDTO);
}